#!/bin/bash
i=0
while (($i<2)) 
do
	NUM1=$(ls -l /etc/passwd|cut -d" " -f5)
	sleep 5
	NUM2=$(ls -l /etc/passwd|cut -d" " -f5)
	if [ "$NUM1" == "$NUM2" ];then
		echo `date`
	else
		echo "The file /etc/passwd has been modified."
	fi
	exit
done
echo --------------------
